package com.jeasonzhao.report.exceptions;

import com.jeasonzhao.report.model.Report;
import com.jeasonzhao.report.msg.Message;

public class RenderException extends ReportRuntimeException
{
    private static final long serialVersionUID = 1L;

    public RenderException(Report rpt)
    {
        super(rpt);
    }

    public RenderException(Report rpt,String message)
    {
        super(rpt,message);
    }

    public RenderException(Report rpt,Throwable cause)
    {
        super(cause,rpt);
    }

    public RenderException(Report rpt,String message,Throwable cause)
    {
        super(cause,rpt,message);
    }

    public RenderException(Object ...objs)
    {
        super(objs);
    }

    public RenderException(Throwable t,Object ...objs)
    {
        super(t,objs);
    }

    @Message(
        {"zh_cn","找不到报表定义"
        ,"en","No report, no render."})
    public static class NoReport extends RenderException
    {
        private static final long serialVersionUID = 1L;
        public NoReport()
        {

        }
    }
}
